package com.ansuenjob.model;

import java.sql.Timestamp;

/**
 * BstPersonSimpleId entity. @author MyEclipse Persistence Tools
 */

public class BstPersonSimpleId implements java.io.Serializable {

	// Fields

	private Integer mid;
	private String realname;
	private String jobName;
	private String phone;
	private String wishPay;
	private String certName;
	private String specialty;
	private String address;
	private Short flag;
	private Timestamp updateDate;
	private Integer subid;

	// Constructors

	/** default constructor */
	public BstPersonSimpleId() {
	}

	/** minimal constructor */
	public BstPersonSimpleId(Integer mid) {
		this.mid = mid;
	}

	/** full constructor */
	public BstPersonSimpleId(Integer mid, String realname, String jobName,
			String phone, String wishPay, String certName, String specialty,
			String address, Short flag, Timestamp updateDate, Integer subid) {
		this.mid = mid;
		this.realname = realname;
		this.jobName = jobName;
		this.phone = phone;
		this.wishPay = wishPay;
		this.certName = certName;
		this.specialty = specialty;
		this.address = address;
		this.flag = flag;
		this.updateDate = updateDate;
		this.subid = subid;
	}

	// Property accessors

	public Integer getMid() {
		return this.mid;
	}

	public void setMid(Integer mid) {
		this.mid = mid;
	}

	public String getRealname() {
		return this.realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getJobName() {
		return this.jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getWishPay() {
		return this.wishPay;
	}

	public void setWishPay(String wishPay) {
		this.wishPay = wishPay;
	}

	public String getCertName() {
		return this.certName;
	}

	public void setCertName(String certName) {
		this.certName = certName;
	}

	public String getSpecialty() {
		return this.specialty;
	}

	public void setSpecialty(String specialty) {
		this.specialty = specialty;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Short getFlag() {
		return this.flag;
	}

	public void setFlag(Short flag) {
		this.flag = flag;
	}

	public Timestamp getUpdateDate() {
		return this.updateDate;
	}

	public void setUpdateDate(Timestamp updateDate) {
		this.updateDate = updateDate;
	}

	public Integer getSubid() {
		return this.subid;
	}

	public void setSubid(Integer subid) {
		this.subid = subid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof BstPersonSimpleId))
			return false;
		BstPersonSimpleId castOther = (BstPersonSimpleId) other;

		return ((this.getMid() == castOther.getMid()) || (this.getMid() != null
				&& castOther.getMid() != null && this.getMid().equals(
				castOther.getMid())))
				&& ((this.getRealname() == castOther.getRealname()) || (this
						.getRealname() != null
						&& castOther.getRealname() != null && this
						.getRealname().equals(castOther.getRealname())))
				&& ((this.getJobName() == castOther.getJobName()) || (this
						.getJobName() != null && castOther.getJobName() != null && this
						.getJobName().equals(castOther.getJobName())))
				&& ((this.getPhone() == castOther.getPhone()) || (this
						.getPhone() != null && castOther.getPhone() != null && this
						.getPhone().equals(castOther.getPhone())))
				&& ((this.getWishPay() == castOther.getWishPay()) || (this
						.getWishPay() != null && castOther.getWishPay() != null && this
						.getWishPay().equals(castOther.getWishPay())))
				&& ((this.getCertName() == castOther.getCertName()) || (this
						.getCertName() != null
						&& castOther.getCertName() != null && this
						.getCertName().equals(castOther.getCertName())))
				&& ((this.getSpecialty() == castOther.getSpecialty()) || (this
						.getSpecialty() != null
						&& castOther.getSpecialty() != null && this
						.getSpecialty().equals(castOther.getSpecialty())))
				&& ((this.getAddress() == castOther.getAddress()) || (this
						.getAddress() != null && castOther.getAddress() != null && this
						.getAddress().equals(castOther.getAddress())))
				&& ((this.getFlag() == castOther.getFlag()) || (this.getFlag() != null
						&& castOther.getFlag() != null && this.getFlag()
						.equals(castOther.getFlag())))
				&& ((this.getUpdateDate() == castOther.getUpdateDate()) || (this
						.getUpdateDate() != null
						&& castOther.getUpdateDate() != null && this
						.getUpdateDate().equals(castOther.getUpdateDate())))
				&& ((this.getSubid() == castOther.getSubid()) || (this
						.getSubid() != null && castOther.getSubid() != null && this
						.getSubid().equals(castOther.getSubid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getMid() == null ? 0 : this.getMid().hashCode());
		result = 37 * result
				+ (getRealname() == null ? 0 : this.getRealname().hashCode());
		result = 37 * result
				+ (getJobName() == null ? 0 : this.getJobName().hashCode());
		result = 37 * result
				+ (getPhone() == null ? 0 : this.getPhone().hashCode());
		result = 37 * result
				+ (getWishPay() == null ? 0 : this.getWishPay().hashCode());
		result = 37 * result
				+ (getCertName() == null ? 0 : this.getCertName().hashCode());
		result = 37 * result
				+ (getSpecialty() == null ? 0 : this.getSpecialty().hashCode());
		result = 37 * result
				+ (getAddress() == null ? 0 : this.getAddress().hashCode());
		result = 37 * result
				+ (getFlag() == null ? 0 : this.getFlag().hashCode());
		result = 37
				* result
				+ (getUpdateDate() == null ? 0 : this.getUpdateDate()
						.hashCode());
		result = 37 * result
				+ (getSubid() == null ? 0 : this.getSubid().hashCode());
		return result;
	}

}